<div class="titlebar"><i class="iconfont icon-home_icon"></i><span class="fn-fb">{$info.name}</span></div>
<div class="titlebar"><i class="iconfont icon-calendar_icon"></i><span class="fn-fb">订单数据</span></div>
<table class="table">
    <thead>
        <tr>
            <th>平台单号<span class="fn-fn gray">[点击追踪分账细节]</span></th>
            <th class="w140">创建时间</th>
            <th class="w140">付款时间</th>
            <th class="w100 fn-tar">￥计付</th>
            <th class="w100 fn-tar">￥优惠</th>
            <th class="w100 fn-tar">￥应收</th>
        </tr>
    </thead>
    <tbody>
        {foreach $orders as $vo}
        <tr>
            <td>
                <a href="javascript:openwin('{:url('store/queen',['order' => $vo.order_no])}')">
                    <svg class="icon" aria-hidden="true"><use xlink:href="#icon-gongzuorizhi"></use></svg> {$vo.order_no}<br />
                    <svg class="icon" aria-hidden="true"><use xlink:href="#icon-wechat"></use></svg> {$vo.paid_no}
                </a>
            </td>
            <td>{$vo.update_time|date='Y-m-d H:i'}</td>
            <td>{$vo.paid_time|date='Y-m-d H:i'}</td>
            <td class="fn-tar">￥{$vo.amount}</td>
            <td class="fn-tar">￥{:money($vo.amount - $vo.price)}</td>
            <td class="fn-tar">￥{$vo.price}</td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$orders|raw}
<style type="text/css">
    .counts{display: flex;}
    .counts .box{flex: 1;background: #efefef;margin: 10px;padding: 20px;color: #333;border-left:2px solid #2d8cf0;}
    .counts .box:first-child{margin-left: 0px;}
    .counts .box:last-child{margin-right: 0px;}
    .counts .box .iconfont{font-size:40px;}
    .counts .box .num{font-size:25px;}
    .counts .box .text{font-size:14px;}
</style>
<script type="text/javascript">
Do('base','layer', function () {
    $('.isDel').isDel();
    $(".win").win({reload:1});
    $('.istop').click(function () {
        var url = $(this).attr("url");
        parent.layer.confirm('确认要改变用户身份?',{ icon: 3,title: '友情提示' }, function (index) {
            $.getJSON(url, function (data) {window.location.reload();});
            parent.layer.close(index);
        });
    })
})
</script>